package com.asion.vmovie.ui.MVPPresenter;

import com.asion.vmovie.beans.CateDetials;
import com.asion.vmovie.ui.MVPContract.VideoContract;

/**
 * Created by asion on 16-10-21.
 */

public class VideoPresenter extends VideoContract.Presenter {
    @Override
    public void getCateDetials(int postid) {
        mModel.getCateDetials(postid, new VideoContract.OnGetCateDetials() {
            @Override
            public void onGetSuccess(CateDetials cateDetials) {
                mView.showDataSuccess(cateDetials);
            }

            @Override
            public void onGetError(Throwable throwable) {
                mView.showDataError(throwable);
            }
        });
    }
}
